//
//  FenleiMingchengTableViewCell.m
//  tianjin
//
//  Created by 鞠超 on 16/8/6.
//  Copyright © 2016年 jc. All rights reserved.
//

#import "FenleiMingchengTableViewCell.h"

@implementation FenleiMingchengTableViewCell

- (instancetype )initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self)
    {
        [self p_setupView];
    }
    
    return self;
}

- (void )p_setupView
{
    //
    self.name = [[UILabel alloc] init];
    self.name.font = [UIFont systemFontOfSize:13];
    self.name.textAlignment = NSTextAlignmentCenter;
    self.name.text = @"分类名称";
    [self.contentView addSubview:self.name];
    
    //
    self.view_line = [[UIView alloc] init];
    self.view_line.backgroundColor = navi_bar_bg_color;
    [self.contentView addSubview:self.view_line];
    self.view_line.hidden = YES;
}

- (void )layoutSubviews
{
    [super layoutSubviews];
    
    CGFloat length_x = SCREEN_WIDTH / 4;
    
    self.name.frame = CGRectMake(5, 10, length_x - 10, 25);
    self.view_line.frame = CGRectMake(0, 0, 4, 45);
}









@end
